<?php
session_start();
if($_SESSION['tname']){
	$tname=$_SESSION['tname'];
	$id = $_SESSION['id'];
	
//	$user_id=$_SESSION['user_id'];
//	$name=$_SESSION['name'];
//	$user=$_SESSION['user'];
//	$user_type=$_SESSION['user_type'];
//	$user_type_arr=explode(",", $user_type);
//	if($_GET['add_type']){
//		$user_type_arr[]=$_GET['add_type'];
//	}
//	$version = $_SESSION['version'];
//	$dir = "/cell/".$version."/";
//	$dir_wx = "/cell/".$version."/wx_admin/";
//	$dir_meit = "/cell/".$version."/meit/";
}else{
	echo "<script>";
	echo "alert('请先登录！');";
	echo "window.location.href='login.php';";
	echo "</script>";
}

//echo "<pre>";
//print_r($_SESSION);
//echo "</pre>";



?>